package com.domain.beanutil;

import java.text.DecimalFormat;

/** 
* @ClassName: DataConvertUtil 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author wangxm
* @date 2014-6-16 下午4:17:36 
*/
public class DataConvertUtil {
	
	private static final String STR_FORMAT = "0000000000"; 
	
	private static final String STR_BODY_FORMAT = "00000"; 
	
	public static String headLiuShui(String liuShuiHao){
	    Integer intHao = Integer.parseInt(liuShuiHao);
	    DecimalFormat df = new DecimalFormat(STR_FORMAT);
	    return df.format(intHao);
	}
	
	public static String lineLiuShui(String liuShuiHao){
	    Integer intHao = Integer.parseInt(liuShuiHao);
	    DecimalFormat df = new DecimalFormat(STR_BODY_FORMAT);
	    return df.format(intHao);
	}

}
